import request from '../axios'

/**
 * 所有文章列表
 */
export function index(data) {
    return request({
        url: 'index/index',
        method: 'get',
        params: data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 文章详情
 */
export function articleDetail(pd) {
    return request({
        url: '/index/articleDetail',
        method: 'get',
        params: pd,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 新闻弹窗
 */
export function newOpen(pd) {
    return request({
        url: '/index/newOpen',
        method: 'get',
        params: pd,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}
